package com.nbst.dao.mapper.mes;

import java.util.List;
import java.util.Map;

import com.nbst.dao.base.mapper.BaseMapper;
import com.nbst.model.base.UserRole;

public interface UserRoleMapper extends BaseMapper<UserRole> {
	/**
	 * 根据角色id删除
	 * 
	 * @param id
	 * @return int
	 * @author King
	 * @date 2018-8-28
	 */
	int deleteByRid(Integer id);

	/**
	 * 根据条件查询角色id
	 * 
	 * @param map
	 * @return List
	 * @author King
	 * @date 2018-8-28
	 */
	List<Map<String,Object>> getRolesId(Map<String,Object> map);
	
	int delete(Integer id);
}